import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'home',
    component: Home,
    children:[
      {
        path: '/member_1',
        name: 'member_1',
        component: () => import(/* webpackChunkName: "member-1" */ '../views/member/member-1')
      },
      {
        path: '/member_2',
        name: 'member_2',
        component: () => import(/* webpackChunkName: "member-2" */ '../views/member/member-2')
      },
      {
        path: '/member_3',
        name: 'member_3',
        component: () => import(/* webpackChunkName: "member-3" */ '../views/member/member-3')
      },
      {
        path: '/member_4',
        name: 'member_4',
        component: () => import(/* webpackChunkName: "member-4" */ '../views/member/member-4')
      }
      ,
      {
        path: '/commodity_1',
        name: 'commodity_1',
        component: () => import(/* webpackChunkName: "commodity-1" */ '../views/commodity/commodity-1')
      }
      ,
      {
        path: '/commodity_2',
        name: 'commodity_2',
        component: () => import(/* webpackChunkName: "commodity-2" */ '../views/commodity/commodity-2')
      }
      ,
      {
        path: '/transaction',
        name: 'transaction',
        component: () => import(/* webpackChunkName: "transaction" */ '../views/transaction/transaction')
      }
      ,
      {
        path: '/marketing_1',
        name: 'marketing_1',
        component: () => import(/* webpackChunkName: "marketing_1" */ '../views/marketing/marketing-1')
      }
      ,
      {
        path: '/marketing_2',
        name: 'marketing_2',
        component: () => import(/* webpackChunkName: "marketing_2" */ '../views/marketing/marketing-2')
      }
      ,
      {
        path: '/finance_1',
        name: 'finance_1',
        component: () => import(/* webpackChunkName: "finance-1" */ '../views/finance/finance-1')
      }
      ,
      {
        path: '/finance_2',
        name: 'finance_2',
        component: () => import(/* webpackChunkName: "finance-2" */ '../views/finance/finance-2')
      }
      ,
      {
        path: '/jurisdiction_1',
        name: 'jurisdiction_1',
        component: () => import(/* webpackChunkName: "jurisdiction_1" */ '../views/jurisdiction/jurisdiction-1')
      }
      ,
      {
        path: '/system_1',
        name: 'system_1',
        component: () => import(/* webpackChunkName: "system-2" */ '../views/system/system-1')
      }
      ,
      {
        path: '/system_2',
        name: 'system_2',
        component: () => import(/* webpackChunkName: "system-2" */ '../views/system/system-2')
      }
      ,
      {
        path: '/system_3',
        name: 'csystem_3',
        component: () => import(/* webpackChunkName: "system-2" */ '../views/system/system-3')
      }
      ,
      {
        path: '/system_4',
        name: 'system_4',
        component: () => import(/* webpackChunkName: "system-2" */ '../views/system/system-4')
      }
      ,
      {
        path: '/system_5',
        name: 'system_5',
        component: () => import(/* webpackChunkName: "system-2" */ '../views/system/system-5')
      }
      ,
      {
        path: '/system_6',
        name: 'system_6',
        component: () => import(/* webpackChunkName: "system_6" */ '../views/system/system-6')
      }
    ]
  },
  
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
